package cn.itsource.pet.domain;

import cn.itsource.base.domain.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 实体类：
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SearchMasterMsg extends BaseDomain{

    private String title;
    /**
     * 0 待审核 1 审核通过 -1 驳回
     */
    private Integer state;
    /**
     * 宠物名称
     */
    @NotEmpty(message = "宠物名不能为空")
    private String name;
    private Integer age;
    @NotNull(message = "宠物性别不能为空")
    private Integer gender;
    /**
     * 毛色
     */
    @NotEmpty(message = "宠物毛色不能为空")
    private String coatColor;
    /**
     * fastdfs地址1,fastdfs地址1
     */
    //@NotEmpty(message = "图片不能为空")
    private String resources;
    /**
     * 类型
     */
    private Long petType;
    private BigDecimal price;
    @NotEmpty(message = "地址不能为空")
    private String address;
    @NotNull(message = "请求超时.....")
    private Long userId;
    /**
     * 店铺id 消息分配的店铺
     */
    private Long shopId;
    private String note;


}
